@import '../../../res/theme/xxhz.scss';
.calendarRoot{
    position: fixed;
    background-color: rgba(0,0,0,0.6);
    width: 100%;
    height: 100%;
    z-index: 9999999999;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
  .main{
    background-color: white;
    width: 90vw;
    // height: 100vw;
    border-radius: 10px;
    overflow: hidden;
    .title-box{
      position: relative;
      .close-box{
        position: absolute;
        right: 30px;
        top: 16px;
      }
      .title{
        padding: 20px 0 0;
        text-align: center;
        font-size: 26px;
        color: #666666;
      }
    }
    .head{
      display: flex;
      justify-content: space-between;
      align-items: center;
      line-height: 40px;
      box-sizing: border-box;
      padding: 30px 30px;
      .btn{
        font-size: 24px;
        background: #f8f8f8;
        border: solid 1Px #efefef;
        border-radius: 10px;
        padding: 5px 20px;
      }
      .title{
        font-size: 30px;
      }
    }
    .week{
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      font-size: 24px;
      text-align: center;
      .week-item{
        line-height: 50px;
        font-size: 20px;
        color: rgb(116, 117, 117);
      }
    }

    .day-box{
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      grid-template-rows: repeat(6, 160px);
      //grid-template-rows: repeat(6, minmax(160px, 300px));
      //grid-auto-rows: minmax(2vh, 13.1vh);
      overflow: hidden;
      .day-item{
        background-color: white;
        font-size: 18px;
        box-sizing: border-box;
        padding: 18px 10px 10px;
        line-height: 1;
        overflow: hidden;
        white-space: nowrap;
        position: relative;
        .calendar-header{
          position: absolute;
          display: flex;
          align-items: center;
          margin-top: -10px;
          justify-content: space-evenly;
          .holidays{
            color: #ed5565;
            margin-right: 4px;
            min-width: 24px;
          }
        }
        .work-days{
          color: #ddd !important;
          background-color: #919096 !important;
        }
        .rest-work{
          border-radius: 6px;
          text-align: center;
          color: #fff;
          width: 20px;
          background-color: #f1792b;
          font-size: 18px;
          height: 22px;
          margin-top: -3px;
          line-height: 22px;
          padding: 2px 6px;
        }
        .rest-or-work{
          text-align: center;
          margin-top: -3px;
          border-radius: 6px;
          color: #fff;
          width: 20px;
          background-color: #f1792b;
          font-size: 18px;
          height: 22px;
          line-height: 22px;
          padding: 2px 6px;
        }
        .day{
          margin-top: 15px;
          text-align: center;
          padding-bottom: 10px;
        }
        .text{
          text-align: center;
          padding-top: 6px;
        }
        .info-text{
          font-size: 16px;
        }
        .error{
          color: red;
        }
      }
      /* .weekend{
        .day{
          color: $color-brand;
        }
      } */
      .invalid{
        opacity: 0.5;
      }
      .single{
        background-color: $color-brand;
        color: white;
        border-radius: 8px;
        .day{
          color: white;
        }
      }
      .end{
        background-color: $color-brand;
        color: white;
        border-top-right-radius: 15px;
        border-bottom-right-radius: 15px;
        position: relative;
        .day{
          color: white;
        }
      }

      .end::after {
        content: '退';
        position: absolute;
        display: block;
        right: -22px;
        text-align: center;
        background-color: #222;
        color: white;
        width: 70%;
        font-size: 16px;
        z-index: 9;
        transform: rotateZ(45deg);
        top: -1px;
        padding: 10px 5px 5px;
      }
      .start{
        background-color: $color-brand;
        color: white;
        border-top-left-radius: 15px;
        border-bottom-left-radius: 15px;
        position: relative;
        .day{
          color: white;
        }
      }

      .start::after {
        content: '订';
        position: absolute;
        display: block;
        right: -26px;
        text-align: center;
        background-color: #222;
        color: white;
        width: 70%;
        font-size: 16px;
        z-index: 9;
        transform: rotateZ(45deg);
        top: -4px;
        padding: 12px 5px 5px;
      }
      .range{
        background-color: #ffc45e;
        color: white;
        .day{
          color: white;
        }
      }
    }

  }
  .submit{
    position: fixed;
    bottom: 5vh;
    width: 50%;
    left: 25%;
    background-color: $color-brand;
    color: white;
    text-align: center;
    line-height: 80px;
    border-radius: 40px;
    font-size: 30px;
  }
}
.start-s{
  border-radius: 8px;
  background-color: $mainColor !important;
  color: white;
  position: relative;
  .day{
    color: white;
  }
}
.start-s::after{
  content: '';
  position: absolute;
  display: block;
  right: -19px;
  text-align: center;
  color: white;
  width: 41px;
  z-index: 9;
  top: -17px;
  padding: 16px 5px 5px;
  transform: scale(0.6) rotateZ(45deg) translateY(0px);
}
.end-e{
  background-color: $mainColor !important;
  color: white;
  border-radius: 8px;
  position: relative;
  .day{
    color: white;
  }
}
.end-e::after{
  content: '';
  position: absolute;
  display: block;
  right: -19px;
  text-align: center;
  color: white;
  width: 41px;
  z-index: 9;
  top: -17px;
  padding: 16px 5px 5px;
  transform: scale(0.6) rotateZ(45deg) translateY(0px);
}
.scrollview{
  height: 660px;
  overflow-anchor:auto;
}
